<?php
$this->setTemplate('auth.php');

include_once('../engine/classes/auth.class.php');

$auth = new auth();
$auth->setPrefix('cms');
$auth -> addArray($config['users']);


if (ajax) {
	if ($auth->check()) echo "window.location='index.php'";
	else echo "shake();";
} else {
	if ($auth->check()) {$this->redirect('admin/index.php');}
}
?>
